home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95c.txt / 000109_icon-group-sender _Mon Dec 4 17:01:09 1995.msg < prev    next >
Internet Message Format  |  1996-01-03  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 4 Dec 1995 13:15:34 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 4 Dec 1995 17:01:09 GMT
  4. From: John Lindsay <lindsay-j@rmc.ca>
  5. Message-Id: <49v9gl$ksu@cs6.rmc.ca>
  6. Organization: Royal Military College
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: Generators and/vs. coroutines ?
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. Generators are extremely useful and neat where they are needed (even a 
  12. sine qua non in some cases), maddening to understand for the first 
  13. time, and totally infuriating to even think of implementing in a 
  14. 'normal' C, FORTRAN, Pascal .... call-stack environment where full 
  15. tasking and multithreading and exception-handling may be involved.  
  16. Hence I pose the following:
  17.  
  18. Is an Icon generator anything more or less than a coroutine which can 
  19. be instantiated by an explicit call with value arguments, and can 
  20. 'return' a function value across the coroutine boundary ?  
  21.  
  22. -- 
  23. All the best !
  24.  
  25. John H. Lindsay,                     Phone:  (613) 541-6000 - 1 - 6419
  26. Department of Mathematics and Computer Science, 
  27. Royal Military College of Canada,           Internet: Lindsay_J@RMC.CA
  28. Kingston, Ontario, Canada,  K7K 5L0.               Fax: (613) 542-8129
  29.  
  30.  
  31.